home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
IRIX Base Documentation 1998 November
/
IRIX 6.5.2 Base Documentation November 1998.img
/
usr
/
share
/
catman
/
u_man
/
cat1
/
Inventor
/
gview.z
/
gview
Wrap
Text File
|
1998-10-30
|
7KB
|
199 lines
GGGGVVVVIIIIEEEEWWWW((((1111))))
NNNNAAAAMMMMEEEE
gview - graph viewer for Inventor 3d databases
SSSSYYYYNNNNOOOOPPPPSSSSIIIISSSS
ggggvvvviiiieeeewwww [[[[ffffiiiilllleeee |||| <<<< ffffiiiilllleeee]]]]
DDDDEEEESSSSCCCCRRRRIIIIPPPPTTTTIIIIOOOONNNN
_g_v_i_e_w is a program for viewing, editing, and learning about Inventor 3d
scene graphs. There are two views of the Inventor scene graph: a 3d
rendered view (left) and a scene graph view (right). The 3d rendered
view displays the data in an examiner viewer and allows selection as well
as viewing. The scene graph view renders the scene database as a
directed acyclic graph illustrating the structure and relationships
within the database. This view is displayed in a GraphViewer component,
which is derived from the Inventor plane viewer. Each node in the graph
is represented by a 3D icon.
If you select an object in one view, it will be highlighted in both
views. This is a very interesting way to learn about Inventor scene
databases. You can create new objects, edit the values of objects, and
rearrange the structure of the database by cutting and pasting. (See the
descriptions of the menu items for details.)
This program is especially useful for Inventor programmers who want to
analyze a specific database or who wish to experiment with Inventor
features and visualize the database at the same time.
GGGGVVVVIIIIEEEEWWWW MMMMEEEENNNNUUUU
The top bar contains the following three items under the _g_v_i_e_w menu:
_S_a_v_e _i_n _g_v_i_e_w._i_v
Saves the Inventor scene (as displayed in the examiner viewer) in
the file _g_v_i_e_w._i_v.
_S_a_v_e _d_i_s_p_l_a_y _g_r_a_p_h _i_n _d_i_s_p._i_v
Saves the scene representing the graph (as displayed in the graph
viewer) in the file _d_i_s_p._i_v.
_Q_u_i_t
The usual.
GGGGRRRRAAAAPPPPHHHH VVVVIIIIEEEEWWWWEEEERRRR MMMMEEEENNNNUUUU
The top bar in the right-hand graph viewer window contains the following
menus:
_G_r_a_p_h
This menu contains an _U_p_d_a_t_e button that updates the graph view
based on changes made to the scene graph. (This is useful only if
the GraphViewer component is used in some application that can
modify the structure of the original scene graph; the GraphViewer
does not update based on changes to this scene graph, since that
would be too expensive.)
Page 1 Release 6.5 August 1991
GGGGVVVVIIIIEEEEWWWW((((1111))))
_E_d_i_t
This menu enables cutting, copying, pasting, and duplicating the
selected node in the scene graph. When pasting (or duplicating,
which is copying and pasting in one operation), you have a choice of
pasting a copy of the node or a reference to (instance of) it.
Feedback appears to indicate where the copy or instance will be
located.
_S_e_l_e_c_t
This menu allows you to change easily which node is selected.
_G_r_o_u_p
This menu allows you to hide or show nodes under a group node. If a
group node is selected, the _O_p_e_n button displays the immediate
children of the group, while _O_p_e_n _A_l_l displays all descendants.
_C_l_o_s_e hides all descendants, and _T_o_g_g_l_e toggles between the open and
closed states.
_I_n_s_t
When a node is the child of more than one parent, each instance
after the first is displayed as an instance icon (a letter "I" in
the default icons). When an instance icon is selected, the _T_o_g_g_l_e
button in this menu toggles the display of a line that connects the
instance icon to the node it is an instance of. The _S_w_a_p button
exchanges the instance icon with this other node. (This can be
useful to examine nodes under an instance of a group node.)
_N_o_d_e
The _C_r_e_a_t_e button in this menu brings up a NodeCreator widget that
allows you to create a new instance of any built-in Inventor node
class. Once a type is selected or typed in, feedback appears in the
GraphViewer to help you place the new node in the graph. The _E_d_i_t
_F_i_e_l_d_s button brings up a FieldEditor widget that allows you to edit
the values of fields in a selected node.
SSSSHHHHOOOORRRRTTTTCCCCUUUUTTTTSSSS
Each menu button has a corresponding keyboard shortcut displayed in the
pull-down menu. Double-clicking on a node icon initiates a common action
for that type of node. For a group, it is equivalent to the _G_r_o_u_p _T_o_g_g_l_e
button. For an instance, it is equivalent to the _I_n_s_t _T_o_g_g_l_e button.
For any other node, it is equivalent to the _N_o_d_e _E_d_i_t _F_i_e_l_d_s button.
IIIICCCCOOOONNNNSSSS
The 3D icons used to represent nodes in the scene graph are read from a
file called _g_v_i_e_w_I_c_o_n_s._i_v. This file is searched for in (in order)
directories specified in the _I_V__G_R_A_P_H__D_I_R environment variable, the
current directory, and the usual place this file gets installed (See the
FILES section).
Each icon in this file is represented by a subgraph (rooted by a
separator) whose first N children are label nodes; each of the label
nodes defines one node type to be represented by that subgraph. Icons
Page 2 Release 6.5 August 1991
GGGGVVVVIIIIEEEEWWWW((((1111))))
follow the node hierarchy; that is, the icon representing a group is used
for all group nodes that don't have explicitly different icons.
The default icon set is chosen to be similar to the icons used in the
Inventor documentation.
SSSSOOOOUUUURRRRCCCCEEEE CCCCOOOODDDDEEEE
Note that the source code to _g_v_i_e_w comes with the _O_p_e_n _I_n_v_e_n_t_o_r _3_d
_T_o_o_l_k_i_t.
FFFFIIIILLLLEEEESSSS
/usr/share/data/models/* - Sample 3D data files
/usr/share/src/Inventor/demos/gview/* - Source to gview
/usr/demos/data/Inventor/gviewIcons.iv - Default icon file
SSSSEEEEEEEE AAAALLLLSSSSOOOO
SceneViewer, drop, inventor, ivcat, ivview, noodle, showcase, revo,
textomatic
Page 3 Release 6.5 August 1991